package ClassWork.Work_01;

public class OddOrEvenNumber {
    public static void main(String[] args) {
        int num = (int)(Math.random() * 10 + 1);
        String x = number(num);
        System.out.println(num + x);
    }
    public static String number(int number) {
        if(0 == number % 2){
            return "是偶数";
        }else{
            return "是奇数";
        }
    }
}
